package cn.com.qtgl.init.tenant.model.entity;


import cn.melonlib.cores.commons.model.entity.TenantRecordEntity;
import cn.melonlib.cores.model.anno.ModelComment;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@EqualsAndHashCode(callSuper = true)
@ModelComment("岗位信息")
@Entity(name = "LocalPost")
@Table(name = "init_local_post")
public class LocalPost extends TenantRecordEntity {


    @ModelComment("接口数据ID")
    private String apiId;

    @ModelComment("岗位名称")
    private String name;

    @ModelComment("岗位编号")
    private String code;

    @ModelComment("标签")
    private String tags;

    @ModelComment("正式岗位")
    private Boolean formal;

    @ModelComment("租户ID")
    private String tenantId;

    @ModelComment("发送时间")
    @Column(name = "c_timestamp")
    private Long timestamp;

    @ModelComment("是否禁用")
    private Boolean disabled;

    @ModelComment("来源")
    private String source;

    @ModelComment("数据源")
    private String dataSource;

    @ModelComment("描述")
    private String description;

    @ModelComment("人数")
    private Integer userSize;

    @ModelComment("完整路径，以 / 分割符定位访问路径")
    @Column(length = 2000,name = "c_path")
    private String path;

    @ModelComment("完整ID路径，以 / 分割符定位访问路径")
    @Column(length = 2000)
    private String idPath;

    @ModelComment("父级岗位")
    private String parentCode;

    @ModelComment("是否孤立")
    private Boolean orphan;

    @ModelComment("是否激活")
    private Boolean active;

    @ModelComment("激活时间")
    private Long activeTime;

    @ModelComment("排序")
    @Column(name = "c_index")
    private Integer index;

    @ModelComment("职位类型")
    private String postType;

    @ModelComment("创建时间")
    private String createTime;

    @ModelComment("开启监控")
    private Boolean monitor;

    @ModelComment("单位类型")
    private String deptTypeCode;

}
